package com.bsoft.exchange.dao.emr;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.bsoft.exchange.domain.AdmissionNoteDomain;
import com.bsoft.exchange.domain.ClinicRecordDomain;
import com.bsoft.exchange.domain.OperateLogBean;
import com.bsoft.exchange.domain.RecordDomain;
import com.bsoft.exchange.domain.RecordMarksDomain;
import com.bsoft.exchange.domain.RecordSignDomain;
import com.bsoft.exchange.domain.SyncTemplateDomain;
import com.bsoft.exchange.domain.TemplateClassDomain; 

/**
 * @author chenhf
 *
 */
@Mapper
public interface RecordMapper {
	
	/**根据病历编号获取病历内容
	 * @param blbh
	 * @return
	 */
	public RecordDomain getEmrRecordById(@Param("blbh")Long blbh);
	
	/**获取病人病程记录
	 * @param jzhm
	 * @return
	 */
	public List<RecordDomain> getEmrCourseList(@Param("jzhm")String jzhm);
	
	/**获取页眉页脚
	 * @param jzhm
	 * @return
	 */
	public RecordDomain getEmrHead(@Param("jzhm")String jzhm);

	/**获取病历签名记录
	 * @param blbh
	 * @return
	 */
	public List<RecordSignDomain> getEmrSignList(@Param("blbh")Long blbh);
	
	public void saveOMR_BL02(ClinicRecordDomain recordBean); //插入数据02表
	
	public void saveOMR_BLXG(RecordMarksDomain recordMarksBean); //更新病历修改表
	public void saveOperLog(OperateLogBean operateLogBean); //保存病历审计日志
	
	/**获取病历类别
	 * @return
	 */
	public List<SyncTemplateDomain> getEmrBllbList(); 
	/**获取模板类别
	 * @param sjlbbh
	 * @return
	 */
	public List<TemplateClassDomain> getEmrMblbList(@Param("sjlbbh")Long sjlbbh); 
	
	/**获取病人病历记录
	 * @param jzhm
	 * @return
	 */
	public List<AdmissionNoteDomain> getPatientEmrRecordList(@Param("jzhm")String jzhm);
	
	
	public RecordSignDomain getEmrSignFile(@Param("qmlsh")Long qmlsh);
	
	public String getEmrBllbMc(@Param("lbbh")Long lbbh); 
	
}
